package com.cskaoyan.mapper;

import com.cskaoyan.bean.CskaoyanmallBrand;
import com.cskaoyan.bean.CskaoyanmallBrandExample;

import java.util.List;


import com.cskaoyan.bean.bo.BrandBVo;

import com.cskaoyan.bean.vo.goods.BrandVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CskaoyanmallBrandMapper {
    long countByExample(CskaoyanmallBrandExample example);

    int deleteByExample(CskaoyanmallBrandExample example);

    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(CskaoyanmallBrand record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(CskaoyanmallBrand record);

    List<CskaoyanmallBrand> selectByExample(CskaoyanmallBrandExample example);

    List<BrandVo> selectAll();

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    CskaoyanmallBrand selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CskaoyanmallBrand record, @Param("example") CskaoyanmallBrandExample example);

    int updateByExample(@Param("record") CskaoyanmallBrand record, @Param("example") CskaoyanmallBrandExample example);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(CskaoyanmallBrand record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CskaoyanmallBrand record);

    int brandCreate(BrandBVo brand);
}